]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Tweak sizing of windows in overview
authorOwen W. Taylor <otaylor@fishsoup.net>
Thu, 6 Aug 2009 19:14:57 +0000 (15:14 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Thu, 6 Aug 2009 19:19:04 +0000 (15:19 -0400)
Tweak arrangements with 2,3,4,5 windows in a desktop so:

 - Windows are a bit bigger
 - All windows for 5 windows are equally sized instead of making
   the windows in the bottom row larger

This does cause some more problems with tall windows overlapping
or running off the edge of the workspace, but it's an overall
small improvement to the behavior.

js/ui/workspaces.js

index 7da0e40ec7b969e4fb5a9391fa69c075bfefcbcc..2325b5abb975259dc603952203ab74faa3e0d7f7 100644 (file)
@@ -36,10 +36,10 @@ FRAME_COLOR.from_pixel(0xffffffff);
 // is relative to the width of the workspace.
 const POSITIONS = {
         1: [[0.5, 0.5, 0.8]],
-        2: [[0.25, 0.5, 0.4], [0.75, 0.5, 0.4]],
-        3: [[0.25, 0.25, 0.33],  [0.75, 0.25, 0.33],  [0.5, 0.75, 0.33]],
-        4: [[0.25, 0.25, 0.33],   [0.75, 0.25, 0.33], [0.75, 0.75, 0.33], [0.25, 0.75, 0.33]],
-        5: [[0.165, 0.25, 0.28], [0.495, 0.25, 0.28], [0.825, 0.25, 0.28], [0.25, 0.75, 0.4], [0.75, 0.75, 0.4]]
+        2: [[0.25, 0.5, 0.45], [0.75, 0.5, 0.45]],
+        3: [[0.25, 0.25, 0.45],  [0.75, 0.25, 0.45],  [0.5, 0.75, 0.45]],
+        4: [[0.25, 0.25, 0.45],   [0.75, 0.25, 0.45], [0.75, 0.75, 0.45], [0.25, 0.75, 0.45]],
+        5: [[0.165, 0.25, 0.30], [0.495, 0.25, 0.30], [0.825, 0.25, 0.30], [0.25, 0.75, 0.30], [0.75, 0.75, 0.30]]
 };
 
 // Spacing between workspaces. At the moment, the same spacing is used